package 剑指offer;

public class sumNums {

    public int sumNums(int n) {
         if (n==1)
             return 1;
         return n+sumNums(n-1);
    }
}
